<?php

declare(strict_types=1);

namespace app\common\logic;

use app\common\model\Banner as ModelBanner;

class Banner
{
    /**
     * 获取banner图列表
     */
    public static function getLists(array $where = [], $field = true)
    {
        $where = where_filter($where, $keys);
        $data = ModelBanner::field($field)->withSearch($keys, $where)->order('sort', 'desc')->select();
        return $data;
    }
}
